import java.util.Arrays;

public class ArrayDemo03 {
    public static void main(String[] args) {
        int i = 10;
        test(i);
        System.out.println(i);//10

        int [] nums = new int[5];
        nums[0] = 10;
        test(nums);
        System.out.println(Arrays.toString(nums));//[10,20]

    }

    public static void test(int i) {
        i = 20;
        System.out.println(i);
    }

    public static void test(int[] i){
        i[1] = 20;
    }
}
